package org.jeecg.modules.company.facade.impl;



import org.springframework.stereotype.Service;


import org.jeecg.base.facade.impl.IFacadeImpl;
import org.jeecg.modules.company.entity.ImportOrder;
import org.jeecg.modules.company.facade.IImportOrderFacade;
import org.jeecg.modules.company.service.IImportOrderService;
import org.jeecg.modules.company.vo.ImportOrderVo;
import org.springframework.beans.BeanUtils;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Description: 出货单
 * @Author: zj
 * @Date:   2020-05-26
 * @Version: V1.0
 */


@Service
public class ImportOrderFacadeImpl extends IFacadeImpl<ImportOrderVo, ImportOrder, IImportOrderService>  implements IImportOrderFacade<ImportOrderVo, ImportOrder> {
        @Autowired
        private IImportOrderService importOrderService;


         @Override
         public ImportOrder po2Vo(ImportOrderVo vo) {
                ImportOrder po = new ImportOrder();
                if(vo==null){
                   return null;
                }
                BeanUtils.copyProperties(vo, po);
                return po;
         }

         @Override
         public ImportOrderVo vo2Po(ImportOrder po) {
                ImportOrderVo vo = new ImportOrderVo();
                 if(po==null){
                     return null;
                  }
                BeanUtils.copyProperties(po, vo);
                return vo;
         }

}
